<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>
<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];

        }
         ?>
         <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
<div class="panel-body">


<form class="guestbookdataform form-horizontal" action="<?php echo U('Ajax/insertEvaluateNews');?>" method="post">

<input type="hidden" name="news_id" value="<?php echo $id;?>">




<div class="form-group">
  <label class="col-sm-2 control-label">说点什么吧</label>
  <div class="col-sm-10">
    <textarea class="form-control" value="" name="content" type="text" id="content_Box" size="50"></textarea>



  </div>
</div>


<button class="btn btn-success">提交</button>


</form>



<div style="padding:10px 0;" id="evaluateListBox<?php echo $vo['id'];?>">









</div>


<?php if(strtolower(GROUP_NAME) != 'admin'){?>


<script>

    $(document).ready(function () {

        //$("#rating-kv").rating({defaultCaption: '{rating} 星'});
		$('#myModal').appendTo('body');
		$('#myModal').wrap('<div class="container"></div>');

		//$('#myModal').wrap('<div class="container"></div>').appendTo('body');

		$.post('<?php echo U('Home/Ajax/getEvaluateListNews');?>',{id:<?php echo $id;?>}, function(data){
			$('#evaluateListBox<?php echo $vo['id'];?>').html(data);
		},'html');

		$('#myModal').on('show.bs.modal',
		  function() {
			  $('.container').eq(0).hide();
		  });
		  $('#myModal').on('hide.bs.modal',
		  function() {
			  $('.container').eq(0).show();
			  $("html,body").animate({scrollTop:$("#scroll_hidden").val()},100);
		  });
    });
function insertEvaluateNewsReply(reply_id, evaluate_id, nickname){
	$('#evaluate_id').val(evaluate_id);
	$('#reply_id').val(reply_id);
	$('#atnickname').val(nickname);
	$('#nickname_').html(nickname);
}
function submitSuccess(){
	$.post('<?php echo U('Home/Ajax/getEvaluateListNews');?>',{id:<?php echo $id;?>}, function(data){
			$('#evaluateListBox<?php echo $vo['id'];?>').html(data);
			$('#myModal').modal('hide');
		},'html');

}



</script>
<?php }?>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">回复<span id="nickname_"></span></h4>
          </div>
          <div class="modal-body">
            <form style="margin:0 auto; padding:0;" class="guestbookdataform form-horizontal" action="<?php echo U('Ajax/insertEvaluateNewsReply');?>" method="post">

<input type="hidden" name="evaluate_id" id="evaluate_id" value="0">
<input type="hidden" name="reply_id" id="reply_id" value="0">
<input type="hidden" name="atnickname" id="atnickname" value="0">
<div class="form-group" style="margin:0; margin-bottom:8px; padding:0;">
  <div class="col-sm-12">
    <textarea class="form-control" value="" name="content" type="text" id="content" size="50"></textarea>
  </div>
</div>


<button class="btn btn-success" style="margin:0 auto; width:95%; display:block;">提交</button>


</form>
          </div>

        </div>
      </div>
    </div>

 </div>
</div></div>